# -*- coding: utf-8 -*-
# Author zwhset

import docker


class Docker(object):
    '''docker manager'''

    def __init__(self):
        self.client = docker.APIClient(base_url='unix://var/run/docker.sock')

    def images(self):
        '''images '''
        return self.client.images()

    def containers(self):
        self.client.containers(all=True)